﻿using System;
using System.Collections.Generic;
using System.Web;

namespace EasySL.Web
{
    public class RequestHandler : IHttpHandler
    {

        #region IHttpHandler Members

        public bool IsReusable
        {
            get { return true; }
        }

        public void ProcessRequest(HttpContext context)
        {
            if (context.Request.Form["request"] != null)
            {
                string request = context.Request.Form["request"];

                context.Response.Write(RequestService.Instance.GetData(request));
            }            
        }

        #endregion
    }
}
